package ui.units {

	import flash.geom.Point;

	public class UnitBean {
		
		public static const IDLE:uint = 1;
		public static const MOVE:uint = 2;
		public static const ATTACK:uint = 3;
		public static const DEAD:uint = 4;
		
		public static const LEFT:uint = 1;
		public static const RIGHT:uint = 2;
		public static const UP:uint = 3;
		public static const DOWN:uint = 4;

		public static const SPEED:uint = 2;
		
		public var id:String;
		public var name:String;
		public var url:String;
		public var x:int;
		public var y:int;
		public var speed:uint;
		public var life:int;
		public var direction:uint;
		public var type:uint;
		public var path:Array;
		public var repeat:Boolean;
		public var damage:Number;
		public var attackCD:Number;
		
		public var bulletId:String;
		public var range:uint;
		//bullet exlpore range, monster get attack in that range
		public var attackRange:uint;
		
		public var start:Point;
		public var end:Point;
		public var target:Object;
		
		public var domain:String;
	}
}